package com.bw.test;

import com.bw.bean.ReviewInfo;
import com.bw.service.ReviewInfoService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class ReviewInfoTset {
    @Autowired
    ReviewInfoService reviewInfoService;
    @Test
    public void t1(){
        ReviewInfo reviewInfo = new ReviewInfo(null, 270, 3, "课程介绍", 6);
        int i = reviewInfoService.add(reviewInfo);
        System.out.println(i>0?"成功":"失败");
    }
    @Test
    public void t2(){
        Integer[] id={7,8};
        int i = reviewInfoService.delete(id);
        System.out.println(i>0?"成功":"失败");
    }
}
